package com.linln.admin.service;

import com.linln.common.vo.JsonResult;
import com.linln.common.vo.PageResult;
import com.linln.component.wtpshiro.annotation.UserLoginToken;
import com.linln.modules.userule.domain.VehicleScanDO;
import com.linln.modules.userule.service.VehicleScanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-04-10 16:50:51
 */
 
@Controller
@RequestMapping("/vehicleScan")
public class VehicleScanController {
	@Autowired
	private VehicleScanService vehicleScanService;
	
	@GetMapping()
	String VehicleScan(){
		System.out.println("进入");
	    return "/service/vehicleScan/index";
	}

	@ResponseBody
	@GetMapping("/list")
	public PageResult<VehicleScanDO> list(@RequestParam(required = false, defaultValue = "0") Integer page,
						  @RequestParam(required = false, defaultValue = "10") Integer limit,
						  String searchName) {

		//查询列表数据
		return vehicleScanService.getVehicleScanList(page, limit, searchName);
	}

}
